class AddUserIdToPermissions < ActiveRecord::Migration
  def change
    add_column :permissions,:user_id,:integer
    add_index :permissions,:user_id
    add_column :permissions,:entity_id,:integer
    remove_column :permissions,:permission
  end
end
